package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.ReservationDto;
import com.zzyl.vo.ReservationVo;
import com.zzyl.vo.TimeCountVo;

import java.time.LocalDateTime;
import java.util.List;

public interface ReservationService {
    // 2.0 查询当天取消预约的数量
    Integer getCancelledReservationCount(Long updateBy);



    // 2.2 查询每个时间段剩余预约次数
    List<TimeCountVo> getCountByEachTime(Long time);

    // 2.3 新增预约
    void addReservation(ReservationDto reservationDto);

    // 2.4 分页查询预约
    PageResponse<ReservationVo> findByPage(Integer pageNum, Integer pageSize, Integer status,Long useId);

    // 2.5 查询所有预约
    List<ReservationVo> findAll(String mobile, LocalDateTime of);

    // 2.6 取消预约
    void cancelReservation(Long id);

    // 2.7 更新预约
    Integer updateReservationStatus(LocalDateTime now);




}
